<?php
class Section_model extends MY_Model
{

	function __construct()
	{
		parent::__construct();
		
		$this->table = 'sections';
		$this->fields = array(
			'section_id' => 'Section',
			'section_name' => '',
			'section_descr' => '',
		);

		$this->rules = array(
			'section_id' => '',
			'section_name' => '',
			'section_descr' => '',
		);
	}
	
	function getSectionList() {
		$this->db->from($this->table);
		$this->db->where('section_name IS NOT NULL');
		$this->db->where('section_sub', 0);
		return $this->db->get()->result();
	}
	
}
?>